package ui.model;

import java.util.List;

import util.StringUtils;

/**
 * Created by chenjian on 2019/12/6
 */

public class ReardsGrowthBean {


    /**
     * current : 1
     * pages : 1
     * records : [{"amount":200,"businessTime":1575604395000,"createTime":1575604395000,"customerId":17171,"entityName":"","flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":434,"list":[{"createTime":1575601138000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":17,"merchantNo":"10000000000001","month":12,"sn":"32300000000000000000001","updateTime":1575604395000,"year":2019},{"createTime":1575601246000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":18,"merchantNo":"10000000000002","month":12,"sn":"32300000000000000000002","updateTime":1575604395000,"year":2019},{"createTime":1575601325000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":19,"merchantNo":"10000000000003","month":12,"sn":"32300000000000000000003","updateTime":1575604395000,"year":2019},{"createTime":1575601427000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":20,"merchantNo":"10000000000004","month":12,"sn":"32300000000000000000004","updateTime":1575604396000,"year":2019}],"memberAmount":null,"month":12,"sn":"","snCount":4,"status":1,"type":5,"updateTime":1575604395000,"year":2019}]
     * size : 10
     * total : 1
     */

    private int current;
    private int pages;
    private int size;
    private int total;
    private List<RecordsBean> records;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RecordsBean> getRecords() {
        return records;
    }

    public void setRecords(List<RecordsBean> records) {
        this.records = records;
    }

    public static class RecordsBean extends BaseBean {
        /**
         * amount : 200.0
         * businessTime : 1575604395000
         * createTime : 1575604395000
         * customerId : 17171
         * entityName :
         * flowNo : ca44b80c-bf27-4d2b-b610-f0076a4cdbeb
         * id : 434
         * list : [{"createTime":1575601138000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":17,"merchantNo":"10000000000001","month":12,"sn":"32300000000000000000001","updateTime":1575604395000,"year":2019},{"createTime":1575601246000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":18,"merchantNo":"10000000000002","month":12,"sn":"32300000000000000000002","updateTime":1575604395000,"year":2019},{"createTime":1575601325000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":19,"merchantNo":"10000000000003","month":12,"sn":"32300000000000000000003","updateTime":1575604395000,"year":2019},{"createTime":1575601427000,"creditSign":1,"customerId":17171,"day":6,"flowNo":"ca44b80c-bf27-4d2b-b610-f0076a4cdbeb","id":20,"merchantNo":"10000000000004","month":12,"sn":"32300000000000000000004","updateTime":1575604396000,"year":2019}]
         * memberAmount : null
         * month : 12
         * sn :
         * snCount : 4
         * status : 1
         * type : 5
         * updateTime : 1575604395000
         * year : 2019
         */

        private String amount;
        private long businessTime;
        private long createTime;
        private int customerId;
        private String entityName;
        private String flowNo;
        private int id;
        private Object memberAmount;
        private int month;
        private String sn;
        private int snCount;
        private int status;
        private int type;
        private long updateTime;
        private int year;
        private List<ListBean> list;

        public String getAmount() {
            return StringUtils.isEmpty(amount) ? "0" : amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public long getBusinessTime() {
            return businessTime;
        }

        public void setBusinessTime(long businessTime) {
            this.businessTime = businessTime;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getCustomerId() {
            return customerId;
        }

        public void setCustomerId(int customerId) {
            this.customerId = customerId;
        }

        public String getEntityName() {
            return entityName;
        }

        public void setEntityName(String entityName) {
            this.entityName = entityName;
        }

        public String getFlowNo() {
            return flowNo;
        }

        public void setFlowNo(String flowNo) {
            this.flowNo = flowNo;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getMemberAmount() {
            return memberAmount;
        }

        public void setMemberAmount(Object memberAmount) {
            this.memberAmount = memberAmount;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public String getSn() {
            return sn;
        }

        public void setSn(String sn) {
            this.sn = sn;
        }

        public int getSnCount() {
            return snCount;
        }

        public void setSnCount(int snCount) {
            this.snCount = snCount;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public long getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(long updateTime) {
            this.updateTime = updateTime;
        }

        public int getYear() {
            return year;
        }

        public void setYear(int year) {
            this.year = year;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean extends BaseBean {
            /**
             * createTime : 1575601138000
             * creditSign : 1
             * customerId : 17171
             * day : 6
             * flowNo : ca44b80c-bf27-4d2b-b610-f0076a4cdbeb
             * id : 17
             * merchantNo : 10000000000001
             * month : 12
             * sn : 32300000000000000000001
             * updateTime : 1575604395000
             * year : 2019
             */

            private long createTime;
            private int creditSign;
            private int customerId;
            private int day;
            private String flowNo;
            private int id;
            private String merchantNo;
            private int month;
            private String sn;
            private long updateTime;
            private int year;

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getCreditSign() {
                return creditSign;
            }

            public void setCreditSign(int creditSign) {
                this.creditSign = creditSign;
            }

            public int getCustomerId() {
                return customerId;
            }

            public void setCustomerId(int customerId) {
                this.customerId = customerId;
            }

            public int getDay() {
                return day;
            }

            public void setDay(int day) {
                this.day = day;
            }

            public String getFlowNo() {
                return flowNo;
            }

            public void setFlowNo(String flowNo) {
                this.flowNo = flowNo;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getMerchantNo() {
                return merchantNo;
            }

            public void setMerchantNo(String merchantNo) {
                this.merchantNo = merchantNo;
            }

            public int getMonth() {
                return month;
            }

            public void setMonth(int month) {
                this.month = month;
            }

            public String getSn() {
                return returnInfo(sn);
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            public int getYear() {
                return year;
            }

            public void setYear(int year) {
                this.year = year;
            }
        }
    }
}
